package com.hao.proxy.core;

import org.jsoup.Connection.Method;

import com.hao.proxy.http.HttpRequest;


public class DefaultFilterRule implements FilterRule {
	
	@Override
	public boolean filter(String responseBody) {
		return true;
	}
	
	@Override
	public HttpRequest getFilterRequest() {
		HttpRequest request = new HttpRequest("www.baidu.com", Method.GET);
		return request;
	}
	
	 private static class SingletonHolder{
		 private static FilterRule instance = new DefaultFilterRule();
	 }
	 
	 public static FilterRule getInstance(){
		 return SingletonHolder.instance;
	 }
	    
}
